package com.yzdmw.toutiao.searchPage;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

public class SearchViewModel extends ViewModel {
    private MutableLiveData<String[]> tags = new MutableLiveData<String[]>(new String[]{"吃货", "逗比", "创业者", "上班这点事儿",
            "影视天堂", "大学生活", "单身狗", "运动和健身",
            "网购达人", "旅游", "程序员", "追星族", "短篇小说",
            "美食", "教育", "学生党", "汪星人"});

    public void setTags(String[] tags) {
        this.tags.setValue(tags);
    }

    public LiveData<String[]> getTags() {
        return tags;
    }
}